import request from 'umi-request';

export async function queryManageList(params) {
  return request('/api/member/api-member/member/getRegularBpmList', {
    method: 'post',
    data: {
      pageNum: params.current,
      pageSize: params.pageSize,
      type:[2,3],
    }
  }).then((res) => {
    if (res.flag) {
      const data = res.data;
      return {
        current: data.currPage,
        data: data.list,
        pageSize: data.pageSize,
        success: true,
        total: data.totalCount,
      };
    } else {
      return {};
    }
  });
}

export async function getregularInfo(id) {
  return request(`/api/member/api-member/member/getManagementInfo/${id}`, {
    method: 'get',
  }).then((res) =>{
    return res.data;
  });
}

export async function sendPositiveBpm(params) {
  return request(`/api/member/api-member/bpm/managementRegular`, {
    params:{
      id:params.id,
      urls:params.urls,
      remark:params.remark
    },
    method: 'get'
  }).then((res) => {
    return res;
  });
}

